{% extends "base.html" %}
{% block title %}
{{page_name}} - Редактирование{% endblock %}
{% block content %}
<table id="tableone" >
	<tr>
		<td>
			<h1>Редактирование {{page_name}}</h1>
			<form method="post" action="/{{page_name}}/save/">
			Код:<br> <textarea name="code" rows="1" cols="20" readonly>{{code}}</textarea><br><br>
			Название страницы:<br> <textarea name="title" rows="1" cols="20">{{title}}</textarea><br><br>
			Контент:<br> <textarea name="content" rows="20" cols="80">{{content}}</textarea><br><br>
		</td>
	</tr>
</table>
<table>
	<tr>
			<td>	
				<input type="submit" value="Сохранить"/>
			</form>
		</td>
		<td>
			<form action="/{{page_name}}/">
				<input type="submit" value="Отменить"/>
			</form>
		</td>
	</tr>
</table>
{% endblock %}
